package com.yl.pattern.creatormodel.prototype.demo2;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 3:55
 * @ClassName Citation
 * @Description 三好学生类
 */
public class Citation implements Cloneable{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void show(){
        System.out.println(name + "同学：在2020学年第一学期中表现优秀，被评为三好学生。特发此状！");
    }
    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
